<!DOCTYPE html>    
<html>
    <head>
        <meta charset="utf-8">
        <title></title>
        <script>
                /**
                 *   10进制         0    1     2        3        4        5            6        7
                 *   二进制          0    1    10       0011      100        101            110        111
                 * 
                 */

                let numa = 4;  // 	1		0		0	
                let numb = 5;  // 	1     0       1
							  // &   1      0      0
							  // |   1      0      1
                let numc = numa & numb;
                console.log("numc: "+numc)

                let numd = numa | numb;
                console.log("numd: "+numd)


                console.log("numa << 1 "+ (numa << 1)); // 100  <<1   1000
                console.log("numa >> 1 "+ (numa >> 1));// 100 >>1      10   
                //无符号的位移
                let nume = -3;
                console.log("nume >>> 1 "+ (nume >>> 1));    


        </script>
    </head>
    <body>
        <h3>请打开浏览器控制台，观察结果</h3>
    </body>
</html>
